import http from '@/utils/http'
// 获取省份
export function getAreas(params) {
  return http.get('/webapi/api/area', params)
}
// 上传图片
// export function uploadImg(params) {
//   return http.post('/wxpub/solution/upload_img', params)
// }
// 行业专业科目树结构
export function getSubjectTree(params) {
  return http.get('/wxpub/exam/category', params)
}
// 获取专业、及对应的科目
export function getProfessions(params) {
  return http.get('/webapi/api/profession', params)
}
// 获取栏目
export function getAllNavs(params) {
  return http.get('/webapi/api/nav', params)
}
// 获取后台配置的需要展示到前端的专业目录
export function getShowProfessions(params) {
  return http.get('/webapi/api/show_profession', params)
}
// 获取顶部导航
export function getNavs(params) {
  return http.get('/webapi/api/menu', params)
}
// 获取用户信息
export function getUserInfo(params) {
  return http.get('/wxpub/api/user_info', params)
}
// 获取banner数据
export function getBanners(params) {
  return http.get('/webapi/api/banner_profession', params)
}
// 获取底部导航栏二维码
export function getFooterEwms(params) {
  return http.get('/webapi/api/bottom_qrcode', params)
}
// 获取底部导航信息
export function getFooterNavs(params) {
  return http.get('/webapi/api/bottom_nav', params)
}
// 获取友情链接
export function getFooterLink(params) {
  return http.get('/newsapi/api/friendly_link', params)
}
// 获取页面seo配置
export function getSeoConfig(params) {
  return http.get('/webapi/api/seo_config', params)

}
// 判断是否为新用户
export function checkNewUser(params) {
  return http.post('/app/web_mini_login/is_new', params)
}
// 获取投诉建议分类
export function getComplains(params) {
  return http.get('/wxpub/api/question_classify?type=1', params)
}
// 提交反馈
export function postComplains(params) {
  return http.post('/wxpub/api/suggestion', params)
}
// 获取我的反馈
export function getMyComplains(params) {
  return http.get('/wxpub/suggestion/my_suggestion?from=web', params)
}
// 提交评价
export function postComments(params) {
  return http.post('/wxpub/suggestion/submit_comment', params)
}